package com.pgy.backend.vo;

import lombok.Getter;

public enum ReturnCode {

    CODE_200(200, "操作成功"), //成功
    CODE_201(201, "操作失败"), //失败
    CODE_401(401,"权限不足"),  //
    CODE_400(400,"参数错误"),  // 参数错误
    CODE_500(500,"系统错误"), // 系统错误
    CODE_600(600,"业务异常"), // 其他业务异常
    CODE_999(999,"操作失败"),
    INVALID_TOKEN(2001,"访问令牌不合法"),
    ACCESS_DENIED(2003,"没有权限访问该资源"),
    CLIENT_AUTHENTICATION_FAILED(1001,"客户端认证失败"),
    USERNAME_OR_PASSWORD_ERROR(1002,"用户名或密码错误"),
    UNSUPPORTED_GRANT_TYPE(1003, "不支持的认证模式");



    String DICT_TYPE_ICON = "icon";

    String FILES_KEY = "FILES_FRONT_ALL";

    //状态码
    @Getter
    private final int code;
    //描述信息
    @Getter
    private final String message;

    ReturnCode(int code, String message) {
        this.code = code;
        this.message = message;
    }


}